package com.xaiojimao.gr_common.vo.resp;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.xaiojimao.gr_common.dto.Result;
import lombok.Data;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PageResp extends Result {

    private Long total;

    public PageResp(Object data, String msg, Integer code, Long total) {
        super(data, msg, code);
        this.total = total;
    }


    public static Result success(Object data, Long total) {
        return new PageResp(data, "成功", 200, total);
    }

}
